<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>elementui 学习</title>
    <script src="elementui/js/index.js"></script>
    <script src="elementui/js/vue.js"></script>
    <link rel="stylesheet" href="elementui/css/index.css">
    <script src="elementui/js/axios-0.18.0.js"></script>
    <script src="elementui/js/vue-router.js"></script>
</head>
<body>
<div id="app">
    <router-link to="/app">商品</router-link>
    <router-view></router-view>
</div>



<script>
    const ao={
        template:'<h1>商品详情</h1>'
    }
    const con=new VueRouter({
        routes:[
            {path:'/app',component:ao}
        ]
    })
    var  vm = new Vue({
        el:"#app",
        data:{},
        components:[],
        router:con,
    })
</script>
</body>
</html>